package com._9xcloud.leaverequest.service;

import com._9xcloud.leaverequest.domain.Clazz;
import com._9xcloud.leaverequest.domain.Student;

import java.util.List;
import java.util.Set;

/**
 * Created by hyq on 2015/5/10.
 */
public interface StudentService {
    Student loadUserByUsername(String username);

    Student authenticate(String username, String password);

    Student getById(int studentId);

    void changePassword(int studentId, String oldPassword, String newPassword);

    void removeAll();

    Student create(String fullName, String username, String password, Clazz clazz);

    List<Student> getAll();

    void update(Student student);

    Set<Student> getByName(String name);

    Set<Student> getByClazzId(int clazzId);
}
